import instance from "./require";

//获取
export let http_getshoplist=()=>{
    return instance.get('/shoplist')
}

//添加
export let http_addshoplist=(obj)=>{
    return instance.post('/shoplist',obj)
}

//删除
export let http_delshoplist=(id)=>{
    return instance.delete(`/shoplist/${id}`)
}

//编辑
export let http_editshoplist=(obj)=>{
    return instance.patch(`/shoplist/${obj.id}`,obj)
}
